-
Notifications
You must be signed in to change notification settings - Fork 646
Add debug configuration options for test debug codelens #1749
Conversation
@ramya-rao-a PTAL |
@lggomez This will not help the case where we can debug programs even without the presence of the launch.json file I would suggest to add a new setting called
|
@ramya-rao-a Done. Regarding the launch config, actually this doesn't depend on launch.json, it was just a bad variable naming from a previous test |
src/goRunTestCodelens.ts
Outdated
|
||
private getDebugConfig(vsConfig: vscode.WorkspaceConfiguration): any { | ||
let debugConfig: any = this.defaultDebugConfig; | ||
let delveConfig: any = vsConfig.get('delveConfig'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same needs to be done in the resolveDebugConfiguration
method at https://github.com/Microsoft/vscode-go/blob/master/src/goDebugConfiguration.ts. So we should probably move this to the util.ts file
This is what is used when we debug "main" programs without any launch.json files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, so I unified the default configurations for both normal and test codelens debug. This should get rid of the confusion caused by this difference, plus being configurable for delve
@lggomez While testing this I realized that all debug configurations (whether the ones from launch.json, or the ones we create for debug tests codelens or the default ones) pass through Sorry about all the churn |
For anyone here to show long strings in the inspector; add this to vscode user settings. You need to increase both "go.delveConfig": {
"useApiV1": false,
"dlvLoadConfig": {
"maxStringLen": 600,
"maxArrayValues": 600,
}
}, |
This PR adds a new runtest.debugConfig setting inside of go.enableCodeLens that mimicks the launch.json options for delve, so we can configure the test debugger
Fixes #1735
An example user setting using this feature: